package hashTable;

public class MyLinkedNode<T> {
    private String id;
    private T element;
    private MyLinkedNode<T> next;

    public MyLinkedNode() {
    }

    public MyLinkedNode(String id, T element) {
        this.id = id;
        this.element = element;
        this.next = null;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public T getElement() {
        return element;
    }

    public void setElement(T element) {
        this.element = element;
    }

    public MyLinkedNode<T> getNext() {
        return next;
    }

    public void setNext(MyLinkedNode<T> next) {
        this.next = next;
    }
}
